import subprocess
import os


def test_submit_exp_no_build():
    subprocess.run(
        "poetry run python -m cleanrl_utils.submit_exp --docker-tag vwxyzjn/cleanrl:latest --wandb-key xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
        shell=True,
        check=True,
    )


# --env-id CartPole-v1 \
# --env-id Car2DEnv-v0 \
# from vizdoom import gym_wrapper
# env_id = "VizdoomHealthGatheringSupree-v0"
env_id = "Car2DEnv-v0"
cmd = f"""
python cleanrl/dqn.py \
    --seed 1 \
    --env-id {env_id} \
    --total-timesteps 50000 \
    --autoOpenUrl \
    --mylog \
    --logLevel debug
"""

if __name__ == '__main__':
    # subprocess.run(cmd, shell=True, check=True)
    os.system(cmd)

